<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="bootstrap.min.css" rel="stylesheet">
</head>
<body>

<#--包含-->
  <#include "header.ftl">


  <table class="table">
      <tr>
          <td>编号</td>
          <td>作者</td>
          <td>书名</td>
      </tr>
      <#--数据迭代-->
      <#list bookList as book>
         <tr>
             <td>${book.id}</td>
             <td>
                 <#if book.author??><#--非null判断-->
                     ${book.author}
                 <#else>
                        匿名
                 </#if>
             </td>
             <td>
                  <#if book.title??><#--非null判断-->
                      ${book.title}
                  <#else>
                        无名
                  </#if>
             </td>
         </tr>

      </#list>

  </table>




</body>
</html>